/** 
 * @file	os.h
 * @brief	
 * 
 *  This file include some files essential for using os-layer interfaces.
 * 
 * @author	hlli
 * @version	1.0
 * @date	2010-05-17
 * 
 * @see		
 * 
 * <b>History:</b><br>
 * <table>
 *  <tr> <th>Version	<th>Date		<th>Author	<th>Notes</tr>
 *  <tr> <td>1.0		<td>2010-05-17	<td>hlli	<td>Create this file</tr>
 * </table>
 * 
 */

#ifndef __OS_H__
#define __OS_H__

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>

#if defined(WIN32) || defined(WINCE)
#define _WIN32_WINNT 0x0501
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <time.h>
#else
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#ifndef _FLASH
#include <net/if.h>
#endif //_FLASH
#include <netinet/in.h>
#include <arpa/inet.h> //add by edzhu for MAC addr

#ifdef _ANDROID
#include <linux/tcp.h>
#elif defined(_FLASH)
#else
#include <netinet/tcp.h>
#endif//_ANDROID _FLASH

#include <dlfcn.h>
#include <time.h>
#include <netdb.h>
#include <pthread.h>
#include <errno.h>
#endif //WIN32 WINCE

#include "msp_define.h"
#include "msp_lib.h"
#include "msp_memory.h"
#include "msp_string.h"
#include "msp_stdio.h"
#include "msp_thread.h"
#include "msp_time.h"
#include "msp_wstring.h"

#endif	/* __OS_H__ */
